package com.project.entity;

import com.project.myBeans.EntitySupport;

import java.util.List;

public class School extends EntitySupport{
    private Integer id;

    private String name;

    private Integer universityid;

    private Integer status;

    private String userdefaultpwd;

    /**
     * 以下为附加字段，用于构造树
     */
    private List<Department> children;

    private final int adminrank = 2;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Integer getUniversityid() {
        return universityid;
    }

    public void setUniversityid(Integer universityid) {
        this.universityid = universityid;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getUserdefaultpwd() {
        return userdefaultpwd;
    }

    public void setUserdefaultpwd(String userdefaultpwd) {
        this.userdefaultpwd = userdefaultpwd == null ? null : userdefaultpwd.trim();
    }

    public List<Department> getChildren() {
        return children;
    }

    public void setChildren(List<Department> children) {
        this.children = children;
    }

    public int getAdminrank() {
        return adminrank;
    }
}